home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
disk
/
bakup
/
mrbk220.lha
/
Rexx
/
compress.mrbk
< prev
next >
Wrap
Text File
|
1991-01-12
|
2KB
|
80 lines
/* compress.mrbk */
/* This demonstration script adjusts MRBackup's compression and decompression
* settings.
*/
signal on ERROR
signal on BREAK_C
options results
if ~(Show('P', 'MRBackup_#1')) then do
say "You must run MRBackup first. With a little work, you could"
say "get this ARexx script to do it for you."
exit 1
end
address "MRBackup_#1"
poptofront
coptions = ""
coptions.1 = "None"
coptions.2 = "12-Bit"
coptions.3 = "13-Bit"
coptions.4 = "14-Bit"
coptions.5 = "15-Bit"
coptions.6 = "16-Bit"
/* trace all */
getcompression
say "Current compression option: " || result
rc = 0
'setinfogadget "ARexx testing - cycling Compression and Decompression options."'
do i=1 to 6
say "i = " || i
say "coptions.i = " || coptions.i
say "Setting compression to " || coptions.i
setcompression coptions.i
getcompression
if result ~= coptions.i then do
say "setcompression " || coptions.i " failed; rc = " || rc
exit rc
end
say "Setting decompression to " || coptions.i
setdecompression coptions.i
getdecompression
if result ~= coptions.i then do
say "setcompression " || coptions.i " failed; rc = " || rc
exit rc
end
call Delay(50)
end i
'setinfogadget "ARexx test complete."'
exit 0
/*------------------------------------------------------------------*/
break_c:
say "*** Control-C recieved. Stopped by user. ***"
exit 5
/*------------------------------------------------------------------*/
error:
say "Error"
exit 6
/*------------------------------------------------------------------*/